﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BomberManServer.Gaming.Object.Bonuses;

namespace BomberManServer.Gaming.Object.Mapping.Model.States
{
    // will make a block with an item bonus of TYPE
    public class Bonus : State
    {
        private Items.Bonus.Type type;
        private BonusTemp bonus;

        public Bonus(Game game, Items.Bonus.Type type)
        {
            this.type = type;
            this.bonus = new BonusTemp(game,type);
        }

        public override Mapping.Block build(Mapping.Block block)
        {
            // reset du compteur de bonus temps
            this.bonus.block = block;
            block.item = this.bonus;

            return block;
        }
    }
}
